Overview | Package | Class | Use | Tree | Deprecated | Index | Help
| Oracle® Ultra Search Java API Reference 10g Release 2 (10.2) B14221-01
PREV CLASS NEXT CLASS | FRAMES NO FRAMES
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD

## oracle.ultrasearch.crawler
Interface UrlRewriter

public interface UrlRewriter

UrlRewriter is an interface for crawler user to rewrite the url links extracted from the web page

Method Summary
`void` | `close()` Close url rewriter
`void` | `open(java.io.PrintWriter log)` Open url rewriter
`boolean` | `rewrite(UrlCandidate candidate)` rewrite the submitted url

Method Detail

### open

    public void open(java.io.PrintWriter log)
              throws UrlRewriteException

  Open url rewriter
  Parameters:
    `log` - the crawler log file
  Throws:
    `UrlRewriteException` - if error

### close

    public void close()
               throws UrlRewriteException

  Close url rewriter
  Throws:
    `UrlRewriteException` - if error

### rewrite

    public boolean rewrite(UrlCandidate candidate)
                    throws UrlRewriteException

  rewrite the submitted url
  Parameters:
    `candidate` - the target url string
  Returns:
    true if url has been rewritten, false if no change
  Throws:
    `UrlRewriteException` - if error

Overview | Package | Class | Use | Tree | Deprecated | Index | Help
| Oracle® Ultra Search Java API Reference 10g Release 2 (10.2) B14221-01
PREV CLASS NEXT CLASS | FRAMES NO FRAMES
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD

Copyright © 2003,2005, Oracle. All Rights Reserved.